
package CtrlLayer;
import DBLayer.GetCity;
import DBLayer.IFDBGetCity; 

/**
 * @version 12/22/2011
 * @author Gruppe 4
 */

public class CtrlGetCity 
{
    private IFDBGetCity getCity; 
    
     /**
     * Constructor for class CtrlgetZipCode
     */
    public CtrlGetCity()
    {
        getCity = new GetCity();
    }
    
    /**
     * Method to get the city from the database
     * @param zipCode int zipCode the zipCode of the city we want to get from the database
     * @return returns a String with the name of the city
     */
    public String getCity(int ZipCode)
    {
        return getCity.getCity(ZipCode);
    }       
}